﻿using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Dryricenet
{
    public partial class home_Receivegoods : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(Request.QueryString["orderid"]);
            if (OrderBLL.orderSFSHBLL(id).ToString() == "已发货")
            {
                OrderBLL.receiveGoodsBLL(id);
                Response.Redirect("home_Iorder.aspx");
            }
            else {
                Response.Write("<script>javascript:alert('亲！商家还未发货，请勿着急收货。');history.back();</script>");
                Response.End();
            }
               
               
           
        }
    }
}